home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8" ?>
- <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
- <stack>
- <name>in</name>
- <id>-1</id>
- <cardCount>5</cardCount>
- <cardID>4575</cardID>
- <listID>2187</listID>
- <cantModify><false /></cantModify>
- <cantDelete><false /></cantDelete>
- <cantAbort><false /></cantAbort>
- <cardSize>
- <width>512</width>
- <height>342</height>
- </cardSize>
- <script>on startUp
- getHomeInfo
- end startUp
-
- on resume
- getHomeInfo
- end resume
-
- on getHomeInfo
- global stacks,applications,documents,userName
- set lockScreen to true
- set lockMessages to true
- push this card
- go to card "User Preferences" of stack "Home"
- put card field "User Name" into userName
- set userLevel to card field "User Level"
- set powerKeys to the hilite of button "Power Keys"
- set blindTyping to the hilite of button "Blind Typing"
- put field "paths" of card "stacks" into stacks
- put field "paths" of card "applications" into applications
- put field "paths" of card "documents" into documents
- pop card
- set lockScreen to false
- set lockMessages to false
- end getHomeInfo
-
- on searchScript pattern,stackName -- search all scripts of a stack
- set lockMessages to true
- if stackName is not empty then go to stack stackName
-
- if the script of this stack contains pattern
- then edit script of this stack
-
- repeat with i = 1 to the number of bkgnds
- go to card 1 of bkgnd i
- if the script of this bkgnd contains pattern
- then edit script of bkgnd
-
- repeat with j = 1 to the number of bkgnd buttons
- if the script of bkgnd button j contains pattern
- then edit script of bkgnd button j
- end repeat
-
- repeat with j = 1 to the number of bkgnd fields
- if the script of bkgnd field j contains pattern
- then edit script of bkgnd field j
- end repeat
-
- end repeat
-
- repeat with i = 1 to the number of cards
- go card i
- if the script of this card contains pattern
- then edit script of this card
-
- repeat with j = 1 to the number of card buttons
- if the script of card button j contains pattern
- then edit script of card button j
- end repeat
-
- repeat with j = 1 to the number of card fields
- if the script of card field j contains pattern
- then edit script of card field j
- end repeat
-
- end repeat
- set lockMessages to false
- end searchScript
-
- function stripSpaces itext
- set cursor to 4
- put itext into stripit
- put offset (space,stripit) into sp
- repeat until sp = 0
- put char 1 to sp-1 of stripit & char sp+1 to the length of stripit¬
- of stripit into stripit
- put sp+1 into sp
- put offset (space,stripit) into sp
- end repeat
- return stripit
- end stripSpaces
-
-
-
-
- </script>
- <background id="2620" file="background_2620.xml" name="" />
- <background id="3889" file="background_3889.xml" name="" />
- <card id="4575" file="card_4575.xml" marked="false" name="" owner="3889" />
- <card id="3702" file="card_3702.xml" marked="false" name="" owner="3889" />
- <card id="4811" file="card_4811.xml" marked="false" name="" owner="3889" />
- <card id="5588" file="card_5588.xml" marked="false" name="" owner="3889" />
- <card id="3165" file="card_3165.xml" marked="false" name="" owner="2620" />
- </stack>
-